Skip to content

Bump ort-sys from 2.0.0-rc.9 to 2.0.0-rc.10 in /src-tauri - #22

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/cargo/src-tauri/ort-sys-2.0.0-rc.10
Closed

Bump ort-sys from 2.0.0-rc.9 to 2.0.0-rc.10 in /src-tauri#22
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/cargo/src-tauri/ort-sys-2.0.0-rc.10

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 15, 2026

Copy link
Copy Markdown
Contributor

Bumps ort-sys from 2.0.0-rc.9 to 2.0.0-rc.10.

Release notes

Sourced from ort-sys's releases.

v2.0.0-rc.10

rc10 graphic


💖 If you find ort useful, please consider sponsoring us on Open Collective 💖

🤔 Need help upgrading? Ask questions in GitHub Discussions or in the pyke.io Discord server!


🔗 Tensor Array Views

You can now create a TensorRef directly from an ArrayView. Previously, tensors could only be created via Tensor::from_array (which, in many cases, performed a copy if borrowed data was provided). The new TensorRef::from_array_view (and the complementary TensorRefMut::from_array_view_mut) method(s) allows for the zero-copy creation of tensors directly from an ArrayView.

Tensor::from_array now only accepts owned data, so you should either refactor your code to use TensorRefs or pass ownership of the array to the Tensor.

⚠️ ndarrays must be in standard/contiguous memory layout to be converted to a TensorRef(Mut); see .as_standard_layout().

↔️ Copy Tensors

rc.10 now allows you to manually copy tensors between devices using Tensor::to!

// Create our tensor in CUDA memory
let cuda_allocator = Allocator::new(
	&session,
	MemoryInfo::new(AllocationDevice::CUDA, 0, AllocatorType::Device, MemoryType::Default)?
)?;
let cuda_tensor = Tensor::<f32>::new(&cuda_allocator, [1_usize, 3, 224, 224])?;
// Copy it back to CPU
let cpu_tensor = cuda_tensor.to(AllocationDevice::CPU, 0)?;

There's also Tensor::to_async, which replicates the functionality of PyTorch's non_blocking=True. Additionally, Tensors now implement Clone.

⚙️ Alternative Backends

ort is no longer just a wrapper for ONNX Runtime; it's a one-stop shop for inferencing ONNX models in Rust thanks to the addition of the alternative backend API.

Alternative backends wrap other inference engines behind ONNX Runtime's API, which can simply be dropped in and used in ort - all it takes is one line of code:

fn main() {
    ort::set_api(ort_tract::api()); // <- magic!
let session = Session::builder()?
    ...

}
</tr></table>

... (truncated)

Commits
  • d1ebde9 fix: use absolute paths for crate include
  • daf9104 2.0.0-rc.10
  • 882056c ci(*): use latest version of rust-cache
  • 180ec09 fix(sys): update binaries with fix for #392
  • 410ece4 chore: match ort-sys license with main license
  • 4745bb3 fix: NVExecutionProvider is not supported on linux
  • 7976879 fix: ensure environment exists when registering NVExecutionProvider
  • fb17d45 refactor: remove most usages of NonNull::new_unchecked
  • b12b903 refactor: simplify SessionOutputs
  • ab2759b feat: Update to ONNX Runtime v1.22 (#393)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Aug 15, 2026
@pengzhendong

Copy link
Copy Markdown
Collaborator

@dependabot rebase

Bumps [ort-sys](https://github.com/pykeio/ort) from 2.0.0-rc.9 to 2.0.0-rc.10.
- [Release notes](https://github.com/pykeio/ort/releases)
- [Commits](pykeio/ort@v2.0.0-rc.9...v2.0.0-rc.10)

---
updated-dependencies:
- dependency-name: ort-sys
  dependency-version: 2.0.0-rc.10
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/cargo/src-tauri/ort-sys-2.0.0-rc.10 branch from 8b7d44e to 968f31f Compare September 3, 2026 06:21
@pengzhendong

Copy link
Copy Markdown
Collaborator

Closing this one rather than merging: ort and ort-sys are both pinned to =2.0.0-rc.9 in Cargo.toml, and the raw bindings changed between rc.9 and rc.10 (CI fails with E0599/E0308 in \ — e.g. \ usage). The two crates must move in lockstep, and an ort bump touches the ONNX runtime loading path that every local model depends on, so it deserves its own tested change instead of a lockfile-only bump of ort-sys.

@dependabot @github

dependabot Bot commented on behalf of github Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

Closing this one rather than merging: ort and ort-sys are both pinned to =2.0.0-rc.9 in Cargo.toml, and the raw bindings changed between rc.9 and rc.10 (CI fails with E0599/E0308 in onnx_audio.rs — e.g. ort::init_from usage). The two crates must move in lockstep, and an ort bump touches the ONNX runtime loading path that every local model depends on, so it deserves its own tested change instead of a lockfile-only bump of ort-sys.

@dependabot
dependabot Bot deleted the dependabot/cargo/src-tauri/ort-sys-2.0.0-rc.10 branch September 3, 2026 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant